/* @(#)GSOrderEmergencydelAction.java    V0.1
 *
 * Project: GSdevelop
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   owen         2006-4-12
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.action;

import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;
import com.hitrust.gs.business.GSManufactureProcessor;
import com.hitrust.gs.business.GSOrderProcessor;

/**
 * 删除应急采购信息
 */
public class GSOrderEmergencydelAction extends GSBaseAction{

    public String execute(GSBaseForm aForm) throws Exception {
        String aOredertempid = aForm.getRequest().getParameter("oredertempid");
        String aOrderdetailid = aForm.getRequest().getParameter("orderdetailid");
        String aOrderDeptId = aForm.getRequest().getParameter("orderDeptId");

        String aGoodsid = aForm.getRequest().getParameter("goodsid");
        String aOrderStatus = aForm.getRequest().getParameter("orderStatus");
        String aCategory = aForm.getRequest().getParameter("category");
        String aConcentricityid = aForm.getRequest().getParameter("concentricityid");
        String aProviderId = aForm.getRequest().getParameter("providerId");
        String aManuftype1 = aForm.getRequest().getParameter("manuftype1");
        String aManuftype2 = aForm.getRequest().getParameter("manuftype2");
        String aManuftype3 = aForm.getRequest().getParameter("manuftype3");
        String aManufInfo = aForm.getRequest().getParameter("manufInfo");
        String aFirstdate = aForm.getRequest().getParameter("firstdate");
        String aLastdate = aForm.getRequest().getParameter("lastdate");
        
        GSOrderProcessor.withdrawEmergencyTask(aOredertempid,aOrderdetailid);
        
//      种类等级
        GSManufactureProcessor tGSManufProcessor = new GSManufactureProcessor();
        tGSManufProcessor.getManufactureOfLevel(aForm);
        
        aForm.getRequest().setAttribute("message","应急采购单信息删除成功!");
        aForm.getRequest().setAttribute("requery","true");
        
        aForm.getRequest().setAttribute("goodsid",aGoodsid);
        aForm.getRequest().setAttribute("orderStatus",aOrderStatus);
        aForm.getRequest().setAttribute("orderDeptId",aOrderDeptId);
        aForm.getRequest().setAttribute("category",aCategory);
        aForm.getRequest().setAttribute("concentricityid",aConcentricityid);
        aForm.getRequest().setAttribute("providerId",aProviderId);
        aForm.getRequest().setAttribute("manuftype1",aManuftype1);
        aForm.getRequest().setAttribute("manuftype2",aManuftype2);
        aForm.getRequest().setAttribute("manuftype3",aManuftype3);
        aForm.getRequest().setAttribute("manufInfo",aManufInfo);
        aForm.getRequest().setAttribute("firstdate",aFirstdate);
        aForm.getRequest().setAttribute("lastdate",aLastdate);
        
        return GSBaseConstants.FORWARD_SUCCESS;
    }

}
